import HttpHandler from "@/handler/HttpHandler";

export default class WorkOrder{
  constructor() {
    this.http=new HttpHandler();
  }
  add(data){
    const url='tie-demo/xuWorkOrder/add';
    return this.http.post(url,data);
  }
  getEnum(params){
    let url ="tie-system/resource/getEnum";
    return this.http.get(url,params);
  }
  queryListPage(data){
    const url = 'tie-demo/xuWorkOrder/queryListPage';
    return this.http.get(url,data);
  }

  queryEntryDetail(data){
    const url = 'tie-demo/xuWorkOrderEntry/queryEntryDetail';
    return this.http.get(url,data);
  }

detail(data) {
  let url = 'tie-demo/xuWorkOrder/queryDetail';
  return this.http.get(url, data);
}

finById(data){
  let url = 'tie-demo/xuWorkOrder/findById';
  return this.http.get(url,data);
}

batchChangeSh(data) {
  let url = 'tie-demo/xuWorkOrder/batchChangeSh';
  return this.http.post(url, data);
}
batchChangeZc(data) {
  let url = 'tie-demo/xuWorkOrder/batchChangeZc';
  return this.http.post(url, data);
}
batchChangeXd(data) {
  let url = 'tie-demo/xuWorkOrder/batchChangeXd';
  return this.http.post(url, data);
}
update(data){
  let url = 'tie-demo/xuWorkOrder/update'
  return this.http.post(url,data)
}

queryCreat(data){
  const url = 'tie-demo/xuWorkOrder/queryCreat';
    return this.http.get(url,data);
}
queryDp(data){
  const url = 'tie-demo/xuWorkOrder/queryDp';
    return this.http.get(url,data);
}
queryFactoryList(data){
  let url='/tie-system/entDept/queryFactoryList';
  return this.http.get(url,data)
}
submitCloseReason(data){
  let url='tie-demo/xuWorkOrder/submitCloseReason';
  return this.http.post(url,data)
}
remove(data){
  let url = 'tie-demo/xuWorkOrder/remove';
  return this.http.post(url, data);
}
removeByObject(data){
  let url = 'tie-demo/xuWorkOrder/removeByObject';
  return this.http.post(url, data);
}
}
